// main.ts
import { createApp } from 'vue';
import App from './App.vue';
import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css';
import * as ELIcons from '@element-plus/icons-vue';
// 文章高亮显示和github版本的markdown部分css
import 'github-markdown-css/github-markdown.css';
import 'highlight.js/styles/github.css';
import VueMarkdown from 'vue-markdown';
import router from './router/index.js';

const app = createApp(App);
app.config.productionTip = false;

for (let iconName in ELIcons) {
  app.component(iconName, ELIcons[iconName]);
}

app.use(VueMarkdown);
app.use(ElementPlus);
app.use(router);
app.mount('#app');
